@extends('layouts.art')
@section('content')
<!-- 百度编辑器引入配置文件 -->
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"> </script>
<form class="form-horizontal" method="post" action="/art">
    <form class="form-horizontal" method="post" action="/art/{{$art->id}}">
   {{csrf_field()}}
        <!-- {{ method_field('PATCH') }} -->
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
            <div class="col-sm-8">
                <input type="title" class="form-control" id="title" name="title" value="{{$art->title}}">

            </div>
        </div>


        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">内容</label>
            <div class="col-sm-8">
                <!-- <textarea class="form-control" rows="5" id="content" name="description">{{$art->description}}</textarea> -->
                <script id="editor" name="description" type="text/plain" style="width:830px;height:300px;">
                    {{$art->description}}
                </script>
                <script type="text/javascript">
                    var ue = UE.getEditor('editor');
                </script>
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">修改</button>
            </div>
        </div>
    </form>
@endsection